package com.newhis.listener;

import com.newhis.event.LoginMessageNoticeEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class LoginMessageNoticeEventListener {
    private static final Logger log = LoggerFactory.getLogger(LoginMessageNoticeEventListener.class);
    @EventListener
    public void handleLoginMessageNoticeEvent(LoginMessageNoticeEvent loginMessageNoticeEvent){
        log.info("登录成功后的发送通知消息，用户名：{}", loginMessageNoticeEvent.getUsername());
    }
}
